{template 'admin','header'}
<form action="{$self_url}?action=listorder" method="POST" onsubmit="return r_submit(this);">
<table cellspacing="1" cellpadding="2" class="table_list">
<caption>资源配置管理</caption>
<tr><th>排序</th><th>配置名称</th><th>资源编码</th><th>对应sql</th><th>操作</th></tr>
{loop $list $res}
<tr>
    <td><input type="text" size="6" name="listorder[{$res['resid']}]" value="{$res['listorder']}" {if check_perms('resource05') === false} disabled = 'true' {/if}></td>
	<td>{$res['res_name']}</td>
	<td>{$res['view_type']}</td>
	<td>{$res['res_sql']}</td>
	<td>{if check_perms('resource03') === true}<a href="{$self_url}?action=edit&resid={$res['resid']}&forward={$forward}">修改</a> |{/if}{if check_perms('resource04') === true}<a href="javascript:my_request('{$self_url}?action=del&resid={$res['resid']}','确认要删除吗？')">删除</a>{/if}</td>
</tr>
{/loop}
</table>
<div class="button_box">
{if check_perms('resource05') === true}<input type="submit" value="排序" class="button_style">{/if}&nbsp;{if check_perms('resource02') === true}<input class="button_style" onclick="self.location='{$self_url}?action=add&forward={$forward}'" type="button" value="添加资源">{/if}
</div>
</form>
{template 'admin','footer'}